﻿namespace EyeOpen.UI.Silverlight
{
    using System.Globalization;
    using System.Windows;

    /// <summary>
    /// Converts a boolean to Visibility.
    /// </summary>                                                                                   
    public class BoolToVisibilityConverter : ValueConverter<bool, Visibility>
    {
        protected override Visibility Convert(bool value, bool parameter, CultureInfo culture)
        {
            if (value)
            {
                return Visibility.Visible;
            }

            return Visibility.Collapsed;
        }
    }
}
